-- GENERATED SPELL FOR [Stonesplinter Seer] --


function spell0_1166(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1166', 3000, 1)
end

function Sorts_1166(pUnit, Event)
local choix_sorts_1166 = math.random(0, 0)
if choix_sorts_1166 == 0 then
pUnit:RegisterEvent('spell0_1166', 1, 1)
end
end

function mob1166_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1166', math.random(1500, 3000), 1)
end

function mob1166_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1166_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1166_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1166, 1, 'mob1166_Action')
RegisterUnitEvent(1166, 2, 'mob1166_Leave')
RegisterUnitEvent(1166, 3, 'mob1166_Kill')
RegisterUnitEvent(1166, 4, 'mob1166_Die')
